package com.hanfu.ucenter.web.exception;

import java.io.Serializable;

/**
 * Created by dufei on 19/9/18.
 */

public enum ErrorCode implements Serializable {
    // 操作码
    SUCCESS("1", "操作成功"),
    ALLREADY("6", "被占用"),
    BUSY("10000", "系统繁忙"),
    FAIL("1", "调用操作失败"),
    PARAMS_ERROR("2", "参数错误"),
    INFO_ERROR("3", "信息错误"),
    HEADER_ERROR("4", "请求头错误,缺少areaCode"),
    DATA_ERROR("5", "数据异常"),
    NOT_FOUND_404("404","记录不存在或已被删除"),


    MEMBER_NOT_FOUND("20000", "用户不存在"),
    AUTH_STATUS_ERROR("20001", "实名认证状态异常"),
    ID_CARD_REPEAT("20002", "身份证被占用"),
    UPLOAD_TYPE_ERROR("20003", "上传图片类型不存在"),

    SHOPNAME_REPETITION("20004","店铺名称重复")



    ;
    private String code;
    private String tip;

    ErrorCode(String code, String tip) {
        this.code = code;
        this.tip = tip;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTip() {
        return tip;
    }

    public void setTip(String tip) {
        this.tip = tip;
    }
}
